;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages openring)
  #:use-module (guix build-system go)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages video)
  #:use-module (gnu packages golang)
  #:use-module ((guixrus packages common go) #:prefix rus:))

(define-public openring
  (package
    (name "openring")
    (version "1.0.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://git.sr.ht/~sircmpwn/openring")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1v6ypzkb5sh25d9k7x4jyp1fnxjxzsh7gqad3vmg5k2p0sv81385"))))
    (build-system go-build-system)
    (arguments
     (list #:import-path "git.sr.ht/~sircmpwn/openring"))
    (propagated-inputs
     (list go-github-com-microcosm-cc-bluemonday
           go-github-com-mattn-go-runewidth
           rus:go-github-com-slymarbo-rss
           rus:go-git-sr-ht--sircmpwn-getopt))
    (home-page "https://git.sr.ht/~sircmpwn/openring")
    (synopsis "Generate webrings from RSS feeds")
    (description
     "This package provides a tool for generating blog webrings
from RSS feeds.")
    (license (list license:cc0 license:gpl3))))
